package com.gitee.qdbp.general.common.biz.oplog.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.oplog.model.AccessRecordBean;
import com.gitee.qdbp.general.common.api.oplog.model.AccessRecordWhere;
import com.gitee.qdbp.general.common.api.oplog.service.IAccessRecordQueryer;
import com.gitee.qdbp.general.common.biz.oplog.basic.AccessRecordBasic;

/**
 * 访问日志业务处理类
 *
 * @author zhh
 * @version 171129
 */
@Service
@Transactional(readOnly = true)
public class AccessRecordQueryer implements IAccessRecordQueryer {

    /** 访问日志DAO **/
    @Autowired
    private AccessRecordBasic accessRecordBasic;

    @Override
    public AccessRecordBean find(String id) throws ServiceException {
        return accessRecordBasic.findById(id);
    }

    @Override
    public AccessRecordBean find(AccessRecordWhere where) throws ServiceException {
        return accessRecordBasic.find(where);
    }

    @Override
    public PageList<AccessRecordBean> list(AccessRecordWhere where, OrderPaging paging) throws ServiceException {
        return accessRecordBasic.list(where, paging);
    }

}